**// OLS
clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Three\Z&Hcompetition.dta"
set more off
xtset IDStudy
gen double lnobs = ln(Samplesize)
ivreg2 PCC SEPCC dummies Hstatistic developed undeveloped Logit lnobs ///
citations firstpub quadratic Boone IFrecursive regulation OLS ///
reviewed_journal [pweight=investperst], cluster (IDStudy)

clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Four\Extra_papers.dta"
set more off
gen double invSEPCC = 1/SEPCC
gen double lnobs = ln(Samplesize)
xtset IDStudy
ivreg2 PCC citations firstpub OLS reviewed_journal Concentration Logit  macro ///
HHI FE RE developed T Zscore global dummies  sampleyear [pweight=investperst], cluster (IDStudy) 

